import request from '@/utils/request'

// 查询漂流瓶捞取记录列表
export function listPickup(query) {
  return request({
    url: '/system/pickup/list',
    method: 'get',
    params: query
  })
}

// 查询漂流瓶捞取记录详细
export function getPickup(id) {
  return request({
    url: '/system/pickup/' + id,
    method: 'get'
  })
}

// 新增漂流瓶捞取记录
export function addPickup(data) {
  return request({
    url: '/system/pickup',
    method: 'post',
    data: data
  })
}

// 修改漂流瓶捞取记录
export function updatePickup(data) {
  return request({
    url: '/system/pickup',
    method: 'put',
    data: data
  })
}

// 删除漂流瓶捞取记录
export function delPickup(id) {
  return request({
    url: '/system/pickup/' + id,
    method: 'delete'
  })
}
